<template>
  <div class="mian">
    <!-- 头部 -->
    <Header v-if="$route.path != '/register'"></Header>
    <!-- 内容 -->
    <div class="main-content">
      <Home v-if="$route.path == '/'"></Home>
      <nuxt-child v-else />
    </div>
    <!-- 底部 -->
    <Footer v-if="$route.path != '/register'"></Footer>
  </div>
</template>

<script>
import Header from "@/components/Header.vue";
import Footer from "@/components/Footer.vue";
import Home from "@/components/Home.vue";
export default {
  name: "IndexPage",
  data() {
    return {
      itemData: null,
    };
  },
  components: {
    Header,
    Footer,
    Home,
  },
  created() {

  },
};
</script>
<style  scoped>
* {
  margin: 0;
  padding: 0;
}
</style>
